home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
176-200
/
189
/
nethack
/
eenamiga.zoo
/
Amiga
/
test.c
< prev
Wrap
C/C++ Source or Header
|
1988-07-13
|
1KB
|
64 lines
#include "stdio.h"
#include "hack.h"
struct flag flags;
struct you u;
curs_on_u(){}
int multi;
remember_topl(){}
int in_doagain;
savech(){}
popch(){return 0;}
pline(){}
char *save_cm="";
clrlin(){}
parseoptions(){}
xchar curx, cury;
long *alloc(n){extern void *malloc();return malloc(n);}
char extcmdlist; /* NOT VERY USABLE */
putstr(s)char*s;{WindowFPuts(s);}
putsym(c)int c;{WindowPutchar(c);}
char bones[1], *alllevels, permbones[1], *allbones, lock1[1], hackdir[1];
char *configfile, plname[1], plnamesuffix, lock[1];
int saveprompt, ramdisk;
char SAVEF[1];
char levels[1];
struct symbols defsyms, showsyms;
extern char orgdir[];
main()
{
int c;
int i;
startup();
gettty();
printf("Dit is %s", "een test\n");
getret();
putchar('\n');
chdir("df1:");
printf("Freediskspace: %ld\n", freediskspace(""));
for (i = 1023; i >= 0; i--)
putchar('x');
getret();
putchar('\n');
for (i = 1023; i >= 0; i--)
putchar('x'), fflush(stdout);
while (c = getchar()) {
putchar(c);
putchar(c | 128);
fflush(stdout);
if (c == 'q' || c == 'Q')
break;
}
chdir(orgdir);
settty();
CleanUp();
}